<?php
abstract class heading extends htmlcontainer {
	public function __construct($content = ''){
		parent::__construct($content);
		$this->validAttributes[] = 'align';
		$this->validAttributeValues['align'] = array('left', 'right', 'center', 'justify');
	}
}

class h1 extends heading{
	public function __construct($content = ''){
		parent::__construct($content);
		$this->tag = 'h1';
	}	
}

class h2 extends heading{
	public function __construct($content = ''){
		parent::__construct($content);
		$this->tag = 'h2';
	}	
}


class h3 extends heading{
	public function __construct($content = ''){
		parent::__construct($content);
		$this->tag = 'h3';
	}	
}

class h4 extends heading{
	public function __construct($content = ''){
		parent::__construct($content);
		$this->tag = 'h4';
	}	
}

class h5 extends heading{
	public function __construct($content = ''){
		parent::__construct($content);
		$this->tag = 'h5';
	}	
}

class h6 extends heading{
	public function __construct($content = ''){
		parent::__construct($content);
		$this->tag = 'h6';
	}	
}
?>